package jnpf.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "id PO对象")
public class IdPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "实体数据对应的ID", required = true)
    @NotNull(message = "实体数据对应的ID不能为空")
    private String id;
}
